package com.kancy.vip.pattern.adapter.v2;

/**
 * @author kancy
 * @date 2019/3/17 16:48
 */
public class Result<T> {
	private String code;
	private String msg;
	private T body;

	public Result() {
		setCode("0000");
		setMsg("成功");
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}

	@Override
	public String toString() {
		return "Result{" +
				"code='" + code + '\'' +
				", msg='" + msg + '\'' +
				", body=" + body +
				'}';
	}
}
